package org.wtfbbq.net.wifi;

public class AccessPoint {
	
	private String bssid, signal, radioType, channel, basicRates, otherRates;
	
	public AccessPoint (
		String bssid,
		String signal,
		String radioType,
		String channel,
		String basicRates,
		String otherRates )
	{
		this.bssid = bssid;
		this.signal = signal;
		this.radioType = radioType;
		this.channel = channel;
		this.basicRates = basicRates;
		this.otherRates = otherRates;
	}
	
	public AccessPoint ()
	{
		// empty
	}
		
	
	public String getBSSID ( ) {
		return bssid;
	}
	
	public String getSignal ( ) {
		return signal;
	}
	
	public String getRadioType ( ) {
		return radioType;
	}
	
	public String getChannel ( ) {
		return channel;
	}
	
	public String getBasicRates ( ) {
		return basicRates;
	}
	
	public String getOtherRates ( ) {
		return otherRates;
	}
	
	public void setBSSID ( String bssid ) {
		this.bssid = bssid;
	}
	
	public void setSignal ( String signal ) {
		this.signal = signal;
	}
	
	public void setRadioType ( String radioType ) {
		this.radioType = radioType;
	}
	
	public void setChannel ( String channel ) {
		this.channel = channel;
	}
	
	public void setBasicRates ( String basicRates ) {
		this.basicRates = basicRates;
	}
	
	public void setOtherRates ( String otherRates ) {
		this.otherRates = otherRates;
	}
	
	public boolean equals ( Object o ) {
		if ( o instanceof AccessPoint ) {
			if ( ((AccessPoint)o).getBSSID().equals(this.bssid) ) {
				return true;
			}
		}
		return false;
	}
	
	public int hashCode ( ) {
		return bssid.hashCode();
	}
	
	public String toString ( ) {
		String s = "";
		s += "MAC: " + bssid + "\r\n";
		s += "Signal: " + signal + "\r\n";
		s += "Channel: " + channel + "\r\n";
		s += "Basic rates: " + basicRates + "\r\n";
		s += "Other rates: " + otherRates + "\r\n";
		return s;
	}
}